﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WindowsFormsApplication2.FORMS;
using WindowsFormsApplication2.All_FORMS.Report_forms;
using WindowsFormsApplication2.All_FORMS.Report_forms.Report;

namespace WindowsFormsApplication2.All_FORMS.Report_forms
{
    public partial class frmTailanDate : Form
    {
        static string od1,fname;
        public frmTailanDate(string od,string name)
        {
            InitializeComponent();
            od1 = od;
            fname = name;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (od1 =="odor")
            {
                frmTAILAN frm = new frmTAILAN(dateTimePicker1.Text,fname);
                frm.Show();
                this.Close();

            } if (od1 == "zahialga")
            {
                frmTailanOrder frm = new frmTailanOrder(dateTimePicker1.Text,fname);
                frm.Show();
                this.Close();
            }
            
        }
    }
}
